import {
  INSPECTION_RESULT_MAP,
  INSPECTION_HANDLE_METHOD_MAP,
  INSPECTION_RECTIFY_STATUS_MAP,
  INSPECTION_TASK_STATE_MAP
} from "../../../../config/inspection.config"

Component({
  externalClasses: ['hyy-class'],
  options: {
    multipleSlots: true,
  },
  /**
   * 组件的属性列表
   */
  properties: {
    // inspectionHistory | inspectionTask | rectification
    type: String,
    itemData: {
      type: Object,
      value: {}
    },
    activeTab: String,
  },

  /**
   * 组件的初始数据
   */
  data: {
    INSPECTION_RESULT_MAP,
    INSPECTION_HANDLE_METHOD_MAP,
    INSPECTION_RECTIFY_STATUS_MAP,
    INSPECTION_TASK_STATE_MAP
  },
  attached() {
    console.log(this.data);
  },
  /**
   * 组件的方法列表
   */
  methods: {
    cet() {
      return '测试题'
    },
    onCard(event) {

      this.triggerEvent('onCard', {
        value: this.data.itemData
      })
    }
  }
})